package ken.app.comparator;

import java.util.Comparator;
import ken.app.bean.SportBabyListBean;

public class BabyAllComparator implements Comparator {

	@Override
	public int compare(Object lhs, Object rhs) {

		SportBabyListBean element2 = (SportBabyListBean) lhs;
		SportBabyListBean element1 = (SportBabyListBean) rhs;

		int flag = element2.getBabyId() - (element1.getBabyId());

		return flag;
	}

}
